<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GrowingTree</title>
<link rel="stylesheet" type="text/css"
	href="all/lib/bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="all/stylesheets/theme.css">
<link rel="stylesheet" href="all/lib/font-awesome/css/font-awesome.css">
<script src="all/lib/jquery-1.7.2.min.js" type="text/javascript"></script>
<style type="text/css">
#line-chart {
	height: 300px;
	width: 800px;
	margin: 0px auto;
	margin-top: 1em;
}

.brand {
	font-family: georgia, serif;
}

.brand .first {
	color: #ccc;
	font-style: italic;
}

.brand .second {
	color: #fff;
	font-weight: bold;
}
</style>
<link rel="shortcut icon" href="../assets/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144"
	href="../assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114"
	href="../assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72"
	href="../assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed"
	href="../assets/ico/apple-touch-icon-57-precomposed.png">
</head>
<body class="">
	<script type="text/javascript">
	function notNull(){
	   var name=document.addform.adminName.value;
	   var password=document.addform.adminPass.value;
	   if(name==null || password==null){
	   alert("请输入完整信息");
	   }else{
	   document.addform.submit();
	   }
	 }
  function check(){
	  var name=document.addform.adminName.value;
	  if(name.match(/^[\u4e00-\u9fa5]+$/)){
		  return true;
	  }else{
		  alert("请输入中文字符");
		  document.addform.adminName.focus();
		  return false;
	  }
  }
 
 function checkPassword(){
	 var password=document.addform.adminPass.value;
	 if(password.length>5&&password.length<13){
		 return true;
	 }else{
		 alert("密码长度必须为6-12位");
	 }
 }
 
  </script>
	<div class="navbar">
		<div class="navbar-inner">
			<ul class="nav pull-right">
			</ul>
			<a class="brand" href="index.jsp"><span class="first">Growing</span><span
				class="second"> Tree</span></a>
		</div>
	</div>
	<div class="row-fluid">
		<div class="dialog">
			<div class="block">
				<p class="block-heading">注册</p>
				<div class="block-body">
					<form action="regist" method="post" name="addform">
						<label>用户名</label> <input type="text" class="span12"
							name="adminName" onBlur="check()"> <label>密码</label> <input
							type="password" class="span12" name="adminPass"
							onBlur="checkPassword()"> <input type="button"
							class="btn btn-primary pull-right" value="注册" onClick="notNull()">
						<label class="remember-me"><input type="checkbox">
							<span id="tran_0_0" onMouseOver="hlgt('#src_0_0,#tran_0_0')"
							onMouseOut="unhlgt('#src_0_0,#tran_0_0')">本人</span><span
							id="tran_0_1" onMouseOver="hlgt('#src_0_1,#tran_0_1')"
							onMouseOut="unhlgt('#src_0_1,#tran_0_1')">同意</span><span
							id="tran_0_2" onMouseOver="hlgt('#src_0_3,#tran_0_2')"
							onMouseOut="unhlgt('#src_0_3,#tran_0_2')">上述</span><span
							id="tran_0_3" onMouseOver="hlgt('#src_0_2,#tran_0_3')"
							onMouseOut="unhlgt('#src_0_2,#tran_0_3')">所有</span><span
							id="tran_0_4" onMouseOver="hlgt('#src_0_4,#tran_0_4')"
							onMouseOut="unhlgt('#src_0_4,#tran_0_4')">条款</span><span
							id="tran_0_5" onMouseOver="hlgt('#src_0_5,#tran_0_5')"
							onMouseOut="unhlgt('#src_0_5,#tran_0_5')">及</span><span
							id="tran_0_6" onMouseOver="hlgt('#src_0_6,#tran_0_6')"
							onMouseOut="unhlgt('#src_0_6,#tran_0_6')">细则</span></label>
						<div class="clearfix"></div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<script src="all/lib/bootstrap/js/bootstrap.js"></script>
	<script type="text/javascript">
        $("[rel=tooltip]").tooltip();
        $(function() {
            $('.demo-cancel-click').click(function(){return false;});
        });
    </script>
</body>
</html>


